home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
-archivi
/
-recent2
/
amicad_2.00.lha
/
AmiCAD
/
ARexx
/
Simulation.AmiCAD
< prev
next >
Wrap
Text File
|
1999-02-21
|
1KB
|
43 lines
/* Lancement simulation analogique */
options results /* indispensable pour récupérer le résultat des macros */
signal on error /* pour l'interception des erreurs */
signal on syntax
parse arg fichier
if fichier="" then do
'REQFILE("Choix d''une netlist", "Spice", "*.cir")'
fichier=result
end
if fichier~="" then do
fichier_simulation='RAM:'||ParseFileName(fichier)||'_spice'
address command
'stack' " 64000"
'cd' " Travail:spice3f5"
arguments=fichier||' -b -r '||fichier_simulation||' >CON:100/100/500/300/Spice/CLOSE/WAIT/SCREENAmiCAD'
address command
'travail:spice3f5/bin/spice3f5full_040' arguments
/* 'execute' ' Travail:spice3f5/Simuler "'||fichier||'"' */
end
exit
ParseFileName: procedure
parse arg FilePath, Part
DivPos = max(lastpos(':',FilePath),lastpos('/',FilePath))+1
if abbrev('FILE', upper(Part))
then return substr(FilePath, DivPos)
else
return strip(left(FilePath, DivPos-1),'T','/')
/* Traitement des erreurs, interruption du programme */
syntax:
erreur=RC
'MESSAGE("Erreur de syntaxe"+CHR(10)+"en ligne 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
exit
error:
'MESSAGE("Erreur en ligne 'SIGL'")'
exit